/**
 * 五、date日期方法
 * 方法
        Date.prototype[@@toPrimitive]
        Date.prototype.getDate()
        Date.prototype.getDay()
        Date.prototype.getFullYear()
        Date.prototype.getHours()
        Date.prototype.getMilliseconds()
        Date.prototype.getMinutes()
        Date.prototype.getMonth()
        Date.prototype.getSeconds()
        Date.prototype.getTime()
        Date.prototype.getTimezoneOffset()
        Date.prototype.getUTCDate()
        Date.prototype.getUTCDay()
        Date.prototype.getUTCFullYear()
        Date.prototype.getUTCHours()
        Date.prototype.getUTCMilliseconds()
        Date.prototype.getUTCMinutes()
        Date.prototype.getUTCMonth()
        Date.prototype.getUTCSeconds()
        Date.prototype.getYear()
        Date.now()
        Date.parse()
        Date.prototype.setDate()
        Date.prototype.setFullYear()
        Date.prototype.setHours()
        Date.prototype.setMilliseconds()
        Date.prototype.setMinutes()
        Date.prototype.setMonth()
        Date.prototype.setSeconds()
        Date.prototype.setTime()
        Date.prototype.setUTCDate()
        Date.prototype.setUTCFullYear()
        Date.prototype.setUTCHours()
        Date.prototype.setUTCMilliseconds()
        Date.prototype.setUTCMinutes()
        Date.prototype.setUTCMonth()
        Date.prototype.setUTCSeconds()
        Date.prototype.setYear()
        Date.prototype.toDateString()
        Date.prototype.toGMTString()
        Date.prototype.toISOString()
        Date.prototype.toJSON()
        Date.prototype.toLocaleDateString()
        Date.prototype.toLocaleString()
        Date.prototype.toLocaleTimeString()
        Date.prototype.toSource()
        Date.prototype.toString()
        Date.prototype.toTimeString()
        Date.prototype.toUTCString()
        Date.UTC()
        Date.prototype.valueOf()
 */
const date = new Date()

console.log("date:", date) //Mon Mar 21 2022 22:01:55 GMT+0800 (中国标准时间)
console.log("toDateString:", date.toDateString()) //Mon Mar 21 2022
console.log("toISOString:", date.toISOString()) //2022-03-21T14:01:55.462Z
console.log("toLocaleDateString:", date.toLocaleDateString()) //2022/3/21
console.log("toLocaleString:", date.toLocaleString()) //2022/3/21 22: 01: 55
console.log("toLocaleTimeString:", date.toLocaleTimeString()) //22:01:55
console.log("Date.now():", Date.now()) //1647871717259 【时间戳】 
